package com.jokerku.lottery.interfaces.idempotent.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author: guzq
 * @CreateTime: 2022/11/06 18:07
 * @Description: 幂等控制锁
 * @Version: 1.0
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Lock {

    String value();

    String errorDesc() default "请求处理中请稍后重试";

    long expireTime() default 3000;
}
